package com.atilim.cargo.model;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table (name="cargo_user")
public class User extends BaseModel {

	public static final int USER_TYPE_ADMIN = 1;
	public static final int USER_TYPE_WORKER = 2;
	public static final int USER_TYPE_CUSTOMER = 3;
	

	private String name;
	private String surname;
	private String username;
	private String password;
	
	private int type;

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
